﻿@using QH.JobBack.Model;
@{
    var moduleList = ViewBag.moduleList as List<Module>;
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>角色列表 - QAdmin后台模板</title>
    <link rel="stylesheet" href="~/static/common/layui/css/layui.css">
    <link rel="stylesheet" href="~/static/admin/css/style.css">
    <script src="~/static/common/layui/layui.js"></script>
    <script src="~/static/common/jquery-3.3.1.min.js"></script>
    <script src="~/static/common/vue.min.js"></script>
</head>
<body>
    <div id="app">

        <!--右侧-->
        <div class="">
            <form class="layui-form " action="/Menu/Add" method="post">
                <div class="left_Competence_add">
                    <div class="title_name">&nbsp;</div>
                    <div class="Competence_add">
                        <div class="layui-form-item">
                            <label class="layui-form-label">所属组</label>
                            <div class="layui-input-inline">
                                <select name="ModuleId" lay-filter="demo" lay-verify="required">
                                    <option value="">请选择</option>
                                    @foreach (var item in moduleList)
                                    {
                                        <option value="@item.Id">@item.Name</option>
                                    }
                                </select>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">角色名称</label>
                            <div class="layui-input-block">
                                <input type="text" id="RoleName" name="Name" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">角色描述</label>
                            <div class="layui-input-block">
                                <input type="text" id="Remark" name="Remark" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">状态</label>
                            <div class="layui-input-block">
                                <select id="Status" class="select Competence_sort col-xs-6 col-lg-6 " name="IsEnable" size="1">
                                    <option value="0">--状态筛选--</option>
                                    <option value=true>启用</option>
                                    <option value=false>禁用</option>
                                </select>
                            </div>
                        </div>
                        <!--按钮操作-->
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button class="layui-btn" lay-submit lay-filter="submit" onclick="return false;">立即提交</button>
                            </div>
                        </div>
                    </div>
                </div>
                <!--权限分配-->

            </form>
        </div>
    </div>
    </div>

    <script src="~/static/role/add.js"></script>
</body>
</html>

